﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Remoting.Core;
using Pixysoft.Framework.Remoting.Controller;

namespace Pixysoft.Framework.Remoting
{
    public class RemotingManager
    {
        public static IRemoteChannel<T> CreateRemoteChannel<T>(string url)
        {
            return new RemoteChannel<T>(url);
        }

        public static IRemoteChannel<T> CreateDynamicRemoteChannel<T>(string url)
        {
            return new DynamicRemoteChannel<T>(url);
        }

        public static IRemoteChannel<T> CreateRemoteChannel<T>(string url, string token)
        {
            return new RemoteChannel<T>(url, token);
        }

        public static IRemoteChannel<T> CreateDynamicRemoteChannel<T>(string url, string token)
        {
            return new DynamicRemoteChannel<T>(url, token);
        }
    }
}
